/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.maven_tests;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestBase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;


/**
 *
 * @author user
 */
public class myTest1 extends SeleneseTestBase {
    
    @Before
    public void beforeClass() {
        selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://localhost:8080");
        System.out.println("Start selenium!!!");
        selenium.start();
    }
    
    @Test
    public void testSimple() throws Exception {
        selenium.open("http://www.mail.ru");
    }
    
    @After
    public void tearsDown() {
        selenium.close();
    }
    
}
